package cate.game.rank.h;

import cate.common.table.d.GDRank;
import cate.game.GameBody;
import cate.game.rank.po.Rank;
import cate.game.rank.vo.RankParam;
import cate.game.role.Role;
import easy.java.practice.errorcode.EcResult;

import java.util.List;

public class RankTeamPvpLoader implements IRankFuncHandler<Rank>{
    private GameBody gameBody;

    public void initialize(GameBody gameBody) {
        this.gameBody = gameBody;
        gameBody.rank.registeHandler(this);
    }


    @Override
    public int getRankId() {
        return GDRank.Id.TEAM_PVP;
    }

    @Override
    public Rank getRankOneData(RankParam param) {
        return null;
    }

    @Override
    public EcResult<Void> admire(RankParam param, String roleUid, int rank) {
        return new EcResult<Void>().fail("该排行榜不支持点赞噢");
    }

    @Override
    public Rank getData(RankParam param, Role role) {
        return null;
    }

    @Override
    public List<Rank> getRankList(RankParam param) {
        return gameBody.pvp.teamPvp.loadRanks();
    }
}
